Optimized Architecture setup

Requirements

  1. Microsoft Azure subscription

  2. Local machine or a virtual machine configured with Visual Studio 2017 Community Edition or better

Before the hands-on lab

Duration: 20 minutes

In this exercise, you will set up an environment to use for the rest of the exercises.

Task 1: Create a virtual machine for your lab environment

  1. Launch a browser using incognite or in-private mode, and navigate to https://portal.azure.com. Once prompted, login with your Microsoft Azure credentials. If prompted, choose whether your account is an organization account or just a Microsoft Account.

  2. Click + Create a resource, and in the search box, type in Visual Studio Community 2017 on Windows Server 2016 (x64), and press enter. Click the Visual Studio Community 2017 image running on Windows Server 2016 and with the latest update.

  3. In the returned search results, click the image name.

    In the Everything blade, Visual Studio Community 2017 is typed in the Search field. Under Name, Visual Studio Community on Windows Server 2016 is circled.
    In the Everything blade, Visual Studio Community 2017 is typed in the Search field. Under Name, Visual Studio Community on Windows Server 2016 is circled.
  4. In the Marketplace solution blade, click Create.

  5. Set the following configuration on the Basics tab, and click OK.

  6. Choose the DS1_V2 Standard instance size on the Size blade.

  7. Accept the remaining default values on the Settings blade, and click OK. On the Summary page, click OK. The deployment should begin provisioning. It may take more than 10 minutes for the virtual machine to complete provisioning.

    Screenshot of the Deploying Visual Studio Community 2017 icon.
    Screenshot of the Deploying Visual Studio Community 2017 icon.

Task 2: Disable IE Enhanced Security

NOTE: Sometimes this image has IE ESC disabled. Sometimes it does not.

  1. On the new VM, you just created, click the Server Manager icon.

    Screenshot of the Server Manager icon.
    Screenshot of the Server Manager icon.
  2. Click Local Server.

    Local Server is selected from the Server Manager icon drop-down menu.
    Local Server is selected from the Server Manager icon drop-down menu.
  3. On the right side of the pane, click On by IE Enhanced Security Configuration.

    IE Enhanced Security Configuration is set to On.
    IE Enhanced Security Configuration is set to On.
  4. Change to Off for Administrators, and click OK.

    In the Internet Explorer Enhanced Security Configuration Dialog box, Administrators is set to Off.
    In the Internet Explorer Enhanced Security Configuration Dialog box, Administrators is set to Off.

Task 3: Download the Sample App Files

  1. Create a new folder on your C: drive named HOL.

  2. Download the sample application and ARM template (optimized-architecture-student.zip) from here: https://cloudworkshop.blob.core.windows.net/optimized-architecture/OptimizedArchitecture-StudentFiles-6-2017.zip.

  3. Right click on the downloaded .zip file, and click Properties. On the properties pane, check Unblock to ensure the files are marked safe.

  4. Extract the zip file contents to the HOL folder.

  5. From the ARMTemplate folder under HOL, open the Visual Studio Solution file: Contoso.Financial.ARMTemplate.sln.

Task 4: Deploy Sample App and “Existing” environment

  1. From the C:\HOL\ARMTemplate folder, open the Visual Studio Solution: Contoso.Financial.ARMTemplate.sln

  2. In the Solution Explorer window, right-click on the Contoso.Financial.ARMTemplate project, click Deploy, and then click New…

    In Solution Explorer, Contoso.Financial.ARMTemplate is selected. From its right-click menu, Deploy / New is selected.

  3. If your Microsoft or Organization account for your Azure Subscription has not been added to Visual Studio yet, click on Add an account, then Add an account…, and follow the prompts to login.

    Add an account is selected in the Deploy to Resource Group dialog box.
    Add an account is selected in the Deploy to Resource Group dialog box.
  4. Click on the Resource group dropdown, followed by selecting <Create New…>.

    In the Deploy to Resource Group dialog box, Create New is selected from the Resource group drop-down menu.
    In the Deploy to Resource Group dialog box, Create New is selected from the Resource group drop-down menu.
  5. On the Create Resource Group dialog, enter the following values:

  6. Click the Create button.

  7. In the Deploy to Resource Group dialog, click the Deploy button to deploy the ARM Template to the newly created Resource Group.

    In the Deploy to Resource Group dialog box, the Deploy button is selected.
    In the Deploy to Resource Group dialog box, the Deploy button is selected.
  8. Deployment status of the ARM Template will be displayed in the Output window within Visual Studio.

    Deployment status displays in the Visual Studio Output Window.
    Deployment status displays in the Visual Studio Output Window.
  9. Once the deployment has completed successfully, the IP Address and FQDN of the External / Internet Load Balancer for the Web App tier will be displayed in the output window.

    The IP Address for the External / Internal Load Balancer are circled in the Output Window.
    The IP Address for the External / Internal Load Balancer are circled in the Output Window.

The Username and Password for the VMs and SQL Database created by the ARM Template are: - Username: demouser - Password: demo@pass123

  1. Open a new Web Browser window, and navigate to the Web App tier using the Internet Load Balancer IP Address.

    The Contoso Financial Login webpage displays.

  2. To login to the Web App Tier of the Contoso Financial sample application, simply enter any email address and password followed by clicking on Sign in. If you can’t immediately sign in, give the site a few minutes to run the background process and then attempt to sign in again.

  3. Once logged in, the sample application will display a simple Account Transaction ledger.

    The Contoso Financial Account Overview webpage displays with Transaction details in an account transaction ledger.

Leaving the browser open to the Account Overview page will automatically load new transactions as they are generated by the background process, since the web page has a JavaScript timer that checks for new transactions periodically. You should follow all steps provided before attending the HOL.